﻿using com.fukefu.sql;

namespace com.fukefu.update.instantiated.MarketShare
{
    public abstract class PM
    {
        public event MyDelegate1_1 _SetMaxNum;
        public event MyDelegate0 _SetNumAdd;
        public MyDelegate1 _Display;
        public SqlServerOperate sql = new SqlServerOperate();

        protected void Display(string mess)
        {
            _Display("-" + mess);
        }
        protected void SetMaxNum(int i)
        {
            if (_SetMaxNum != null)
            {
                _SetMaxNum(i);
            }
        }
        protected void SetNumAdd()
        {
            if (_SetNumAdd != null)
            {
                _SetNumAdd();
            }
        }
        public abstract void Init();
    }
}
